<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>

<head>
<title>Veiling Lijst</title>
</head>

<body>
	<h4>Alle veilingen</h4>

	<hr />

	<table>
		<tr class="thcolor">
			<th>titel</th>
			<th>laatste bod</th>
			<th>categorie</th>
			<th>startdatum</th>
			<th>einddatum</th>
			<th>foto url</th>
			<th>aantal biedingen</th>
			<th>veiling id</th>
		</tr>
		<s:iterator value="veilingen">
			<tr class="tdcolor">
				<td><s:property value="titel" /></td>
				<td><s:property value="laatsteBod" /></td>
				<td><s:property value="categorie" /></td>
				<td><s:property value="startDatum" /></td>
				<td><s:property value="eindDatum" /></td>
				<td><s:property value="fotoUrl" /></td>
				<td><s:property value="aantalBiedingen" /></td>
				<td><s:property value="veilingId" /></td>
				<td><a href="<s:url action="showVeiling" namespace="/visitor"><s:param name="veilingId"><s:property value="veilingId" /></s:param></s:url>">Toon veiling</a></td>
			</tr>
		</s:iterator>
	</table>
	<hr />
	<h4>Zoeken</h4>
	<s:form action="VeilingSearch">
		<s:textfield name="zoekwoord" label="Zoeken op" />
		<s:textfield name="minbedrag" label="Minimum prijs" />
		<s:textfield name="maxbedrag" label="Maximum prijs" />
		<s:radio label="Zoek op" name="zoekop"
			list="#{'true':'Titel','false':'Titel en beschrijving'}" value="true" />
		<s:select name="categorienaam" list='categorien' listKey="naam"
			listValue="naam" label="Selecteer een categorie" />
		<s:submit />
	</s:form>
	<hr />
	<s:if test="hasActionMessages()">
		<s:actionmessage />
	</s:if>

	<ul>
	</ul>
</body>
</html>
